package p3Inheritance;

public class A {
	private int s;
	protected int t;
	int u;
	public int v;
	
	public A(int s_in, int t_in, int u_in, int v_in){
		s = s_in;
		t = t_in;
		u = u_in;
		v = v_in;
	}
	
	public int compare(A other){
		return (s - other.s) + (t - other.t) + (u - other.u) + (v - other.v); 
	}
	
	public String toString(){
		return "[ " + s + ", " + t + ", " + u + ", " + v + " ]";
	}
}
